public class SwithDome2 {
    public static void main(String[] args) {
        //成绩等级
        int score=87;
        int confition=score/10;
        //条件： 整数 字符 字符串，
        //break 每个表达式后必须有。
        switch (confition){
            case 10:
            case 9:
            case 8:
                System.out.println("A");
                break;
            case 7:
                System.out.println("B");
                break;
            case 6:
                System.out.println("C");
                break;
            default:
                System.out.println("d");
                break;
        }
    }
}
